<?php $this->section->begin('breadcrumb')?>
<div id="global-breadcrumb">
	<ul>
		<li><a href="<?php echo $this->url->action("index", "ControlPanel", "Gallery")?>">Thư viên ảnh</a></li>
		<li class="current"><?php echo $gallery->name?></li>
	</ul>
</div>
<?php $this->section->end()?>
<?php $this->content->begin()?>
<div class="widget-shell inner-shadow">
	<div class="widget-header">
		<h2><?php echo $gallery->name?></h2>
		<div class="search-library">
			<div class="categories">
				<?php $this->form->select("gallerySelect", $gallerySelectList, $gallery->id)?>
			</div>
			<div class="submit-search">
				<input class="btn-theme-search" type="submit" value="Search" rel="<?php echo $this->url->action("index")?>"/>
			</div>
		</div>
	</div>
	<div class="widget-body" style="padding:40px 0 35px 41px">
		<ul class="gallery">
			<li>
				<a class="add-image" href="<?php echo $this->url->action("create", array($gallery->id))?>">Thêm thư viện ảnh</a>
			</li>
			<?php foreach ($photos as $photo):?>
			<li>
				<img src="<?php echo $photo->image?>" alt="<?php echo $photo->title?>" />
				<div class="action">
					<a href="<?php echo $photo->image?>" class="zoom" title="<?php echo $photo->title?>">Xem</a>
					<a href="<?php echo $this->url->action("delete")?>" class="delete" title="Xóa" data="<?php echo $photo->id?>">Xóa</a>
					<a href="<?php echo $this->url->action("edit", array($photo->id))?>" class="edit" title="Sửa">Sửa</a>
				</div>
			</li>
			<?php endforeach;?>
		</ul>
		<div class="fclear"></div>
	</div>
</div>
<div id="dialogDelete" style="display: none"></div>
<?php $this->content->end()?>
<?php $this->section->begin("scripts")?>
<?php $this->html->loadJs(array("Areas/Gallery/Assets/js/index_controlpanel.js",
                                "Areas/Gallery/Assets/js/index_pcontrolpanel.js"))?>
<?php $this->section->end()?>
<?php $this->section->begin("stylesheets")?>
<?php $this->html->loadCss(array("Areas/Gallery/Assets/css/index_controlpanel.css",
                                 "Areas/Gallery/Assets/css/index_pcontrolpanel.css"))?>
<?php $this->section->end()?>